package com.ljy.tkmodel.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.ArrayList;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 护理执业资格的分类表
 * </p>
 *
 * @author testjava
 * @since 2022-01-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ljy_zhuanshuo_chapter")
@ApiModel(value="LjyZhuanshuoChapter对象", description="护理执业资格的分类表")
public class LjyZhuanshuoChapter implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "chapter_id", type = IdType.AUTO)
    private Integer chapterId;

    @ApiModelProperty(value = "父级id")
    private Integer parentId;

    @ApiModelProperty(value = "分类名称")
    private String title;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @TableField(value = "is_del")
    @ApiModelProperty(value = "是否删除 1已删除 0未删除")
    private Boolean isDel;

    @TableField(value = "ctime")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "创建或者是修改时间")
    private Integer ctime;

    @TableField(exist=false)
    private ArrayList<LjyZhuanshuoQuestion>  questions;
    @TableField(exist=false)
    private ArrayList<LjyZhuanshuoChapter>  chapters;
}
